package netty.demo.nio.selector.acceptAndRead;

import lombok.SneakyThrows;

import java.net.InetSocketAddress;
import java.nio.channels.SocketChannel;

/**
 * @author Zed
 * @description
 * @date 2022/10/23 10:31
 */
public class Client {
    @SneakyThrows
    public static void main(String[] args) {
        SocketChannel socketChannel = SocketChannel.open();
        socketChannel.connect(new InetSocketAddress("localhost", 8080));
        socketChannel.getLocalAddress();
        System.out.println("waiting...");
    }
}
